package com.springBoot.repository;

import com.springBoot.entity.UserEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserRepository {

    public List<UserEntity> selectByParams(UserEntity userEntity);

    public Integer insert(UserEntity userEntity);

    public Integer update(UserEntity userEntity);

    public Integer delete(UserEntity userEntity);

    public UserEntity getUserByAcc(@Param("userAcc")String userAcc);

    public UserEntity getUserById(@Param("userId")String userId);

    public UserEntity login(@Param("userAcc")String userAcc, @Param("userPwd")String userPwd);
}
